import request from '@/utils/request'

// 查询留学导师列表
export function listMentor(query) {
  return request({
    url: '/member/mentor/list',
    method: 'get',
    params: query
  })
}
// 查询留学导师列表
export function allList(query) {
  return request({
    url: '/member/mentor/allList',
    method: 'get',
    params: query
  })
}
// 查询留学导师详细
export function getMentor(id) {
  return request({
    url: '/member/mentor/' + id,
    method: 'get'
  })
}

// 新增留学导师
export function addMentor(data) {
  return request({
    url: '/member/mentor',
    method: 'post',
    data: data
  })
}

// 修改留学导师
export function updateMentor(data) {
  return request({
    url: '/member/mentor',
    method: 'put',
    data: data
  })
}

// 删除留学导师
export function delMentor(id) {
  return request({
    url: '/member/mentor/' + id,
    method: 'delete'
  })
}

// 导出留学导师
export function exportMentor(query) {
  return request({
    url: '/member/mentor/export',
    method: 'get',
    params: query
  })
}
